package cn.ibdsr.human.transfer.company;

import cn.ibdsr.human.db.model.BaseDTO;
import cn.ibdsr.human.util.RegUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @description:
 * @author: cdl
 * @email: iamcimon@qq.com
 * @date: 2021/8/6 14:43
 */
@ApiModel("修改联系人")
@Data
public class UpdateConnectUserDTO extends BaseDTO {
    /**
     * 联系人
     */
    @ApiModelProperty(value = "联系人",required = true)
    @NotEmpty(message = "联系人不能为空" )
    protected String contactName;

    /**
     * 联系人手机号
     */
    @ApiModelProperty(value = "联系人手机号",required = true)
    @NotEmpty(message = "联系人手机号不能为空" )
    @Pattern(regexp = RegUtils.MOBILE_PHONE, message = "手机号码格式错误")
    protected String contactPhone;

    /**
     * 联系人职务
     */
    @ApiModelProperty(value = "联系人职务",required = true)
    @NotEmpty(message = "联系人职务不能为空" )
    protected String contactJob;
}
